<?php defined('LFNC_PACKAGE') or die('forbidden');


/**
* MLT Web Engine
* http://www.molotsoft.ru
*
* @package MLT_WE
* @subpackage Lucky_Funcs
* @author Ivan Chistyakov <ivan@molotsoft.ru>
* @version $Id: mssql_fetch_values.lfnc.php 265 2009-06-21 20:16:53Z molotsoft@gmail.com $
* @link $HeadURL: http://lucky-funcs.googlecode.com/svn/trunk/funcs/mssql/mssql_fetch_values.lfnc.php $
*/


function mssql_fetch_values($dbr, $value_col = 0) {
	if (mssql_num_rows($dbr) >= 1) mssql_data_seek($dbr, 0);
	$values = array();
	while (!is_false($value = mssql_fetch_value($dbr, $value_col))) $values[] = $value;
	return $values;
}


?>